package com.example.userspringboot.mapper;

import com.example.userspringboot.entity.Order;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface OrderMapper {
    void createOrder(Order order);

    @Select("SELECT * FROM orders WHERE user_id = #{userId}")
    List<Order> getOrderById(Integer userId);
}
